|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.RateComponentModel
public abstract class RateComponentModel
Abstract representation of a rate component.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="component">
<xs:complexType>
<xs:sequence>
<xs:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="component" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
protected java.util.Vector<RateComponentModel> |
children
Component contained by this component |
protected java.lang.String |
description
The component description. |
protected java.lang.String |
name
The component name. |
protected ContextualNode |
parent
The parent of this component. |
| Constructor Summary | |
|---|---|
RateComponentModel()
Builds an empty RateComponentModel. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
abstract boolean |
checkValidity()
Returns true if the component is valid. |
RateComponentModel |
getChildAt(int index)
Gets a child. |
int |
getChildCount()
Gets the child count. |
java.util.Vector<RateComponentModel> |
getChildren()
Gets the children. |
RatingContextDescription |
getContext(ContextualNode child)
Gets the context description for the specified child; The context description contains all the context properties. |
java.lang.String |
getDescription()
Gets the description. |
abstract int |
getMaxChildCount()
Gets the maximum child count. |
java.lang.String |
getName()
Gets the name. |
ContextualNode |
getParent()
|
RatingContextDescription |
inheritedContext()
Gets the inherited context; The context description contains all the context properties. |
boolean |
isRemoveChildAllowed(int index)
Test if removing a child at an index is allowed. |
boolean |
isSetChildAllowed(int index)
Tests if setting a child at an index is allowed. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
protected void |
marshallChildren(XMLOutputter output)
INTERNAL USE . |
void |
remove()
Clears the component to remove it. |
void |
removeChild(int index)
Removes a child. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setChild(int index,
RateComponentModel component)
Sets a child. |
protected void |
setChild(int index,
RateComponentModel component,
boolean checkMaxChildCount)
|
void |
setChildren(java.util.Vector<RateComponentModel> children)
Sets the children. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setParent(ContextualNode node)
Sets the parent node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ContextualNode parent
protected java.util.Vector<RateComponentModel> children
protected java.lang.String name
protected java.lang.String description
| Constructor Detail |
|---|
public RateComponentModel()
| Method Detail |
|---|
public void setName(java.lang.String name)
name - the name.public java.lang.String getName()
public void setDescription(java.lang.String description)
description - the description.public java.lang.String getDescription()
public int getChildCount()
public RateComponentModel getChildAt(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the desired child.
java.lang.IndexOutOfBoundsExceptionpublic abstract int getMaxChildCount()
public abstract boolean checkValidity()
public void setChild(int index,
RateComponentModel component)
throws java.lang.IndexOutOfBoundsException
index - the index where to place the child.component - the child component.
java.lang.IndexOutOfBoundsException
public void removeChild(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the child to remove.
java.lang.IndexOutOfBoundsExceptionpublic void remove()
public boolean isSetChildAllowed(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the desired child.
java.lang.IndexOutOfBoundsException
public boolean isRemoveChildAllowed(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the desired child.
java.lang.IndexOutOfBoundsExceptionpublic void setChildren(java.util.Vector<RateComponentModel> children)
children - a Vector of RateComponentModel representing the children.public java.util.Vector<RateComponentModel> getChildren()
RateComponentModel representing the children.public void setParent(ContextualNode node)
ContextualNode
setParent in interface ContextualNodenode - The parent nodepublic ContextualNode getParent()
public RatingContextDescription getContext(ContextualNode child)
ContextualNode
getContext in interface ContextualNodechild - The child node
public RatingContextDescription inheritedContext()
ContextualNode
inheritedContext in interface ContextualNodepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intoprotected void marshallChildren(XMLOutputter output)
protected void setChild(int index,
RateComponentModel component,
boolean checkMaxChildCount)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||